/*
 * OPIAM Suite
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

package opiam.admin.faare.unittests.javabeans;

import opiam.admin.faare.persistence.javabeans.JBStaticGroup;

import java.util.ArrayList;
import java.util.List;


/**
 * Mapping class for the group object.<br>
 * The definition of the object is given in the faare_mapping.xml file.
 * This file defines the mapping between the group object and the corresponding LDAP entries.
 */
public class JBGroupOfUniqueNames extends JBStaticGroup
{
    /** ObjectClasses list. */
    private List objectClass = new ArrayList();

    /** Common name. */
    private String cn;

    /** Description. */
    private String description;

    /** Creates new JBGroupOfUniqueNames. */
    public JBGroupOfUniqueNames()
    {
    }

    /**
     * Getter for property objectClass.
     * @return Value of property objectClass.
     */
    public java.util.List getObjectClass()
    {
        return objectClass;
    }

    /**
     * Setter for property objectClass.
     * @param objectClasses New value of property objectClass.
     */
    public void setObjectClass(List objectClasses)
    {
        this.objectClass = objectClasses;
    }

    /**
     * Getter for property cn.
     * @return Value of property cn.
     */
    public String getCn()
    {
        return cn;
    }

    /**
     * Setter for property cn.
     * @param acn New value of property cn.
     */
    public void setCn(String acn)
    {
        this.cn = acn;
    }

    /**
     * Getter for property description.
     * @return Value of property description.
     */
    public String getDescription()
    {
        return description;
    }

    /**
     * Setter for property description.
     * @param adescription New value of property description.
     */
    public void setDescription(String adescription)
    {
        this.description = adescription;
    }

    /**
     * Displays object.
     *
     * @return String formatted object.
     */
    @Override
	public String toString()
    {
        return "(" + this.getDn() + ")";
    }
}
